// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.Cluster;

public sealed partial class ClusterJvm
{
	/// <summary>
	/// <para>
	/// Uptime duration, in milliseconds, since JVM last started.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("max_uptime_in_millis")]
	public long MaxUptimeInMillis { get; init; }

	/// <summary>
	/// <para>
	/// Contains statistics about memory used by selected nodes.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("mem")]
	public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterJvmMemory Mem { get; init; }

	/// <summary>
	/// <para>
	/// Number of active threads in use by JVM across all selected nodes.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("threads")]
	public long Threads { get; init; }

	/// <summary>
	/// <para>
	/// Contains statistics about the JVM versions used by selected nodes.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("versions")]
	public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterJvmVersion> Versions { get; init; }
}